
<form name="form" method="post" action="{[$root]}{[$deleteLink]}{[$p1]}{[$p3]}">
<table>
	<tr align="center" style="background-color: #000000; color: #FFFFFF">
		<th width="40"><input type="checkbox" class="check" name="chkall" value="on" onclick="chkbox(this.form)"></th>
		<th>序号</th>
		<th>流水号</th>
		<th>编号</th>
		<th>套数</th>
		<th width="80"></th>

		<th>明细</th>
		<th>币种</th>		
		<th>金额</th>
		<th>人民币</th>
		
		<th>紧急程度</th>
		<th>要求日期</th>
		
		<th>业务员</th>
		<th>报价员</th>

		<th>次数</th>
		<th>状态</th>
		<th>{[$orderby]}</th>
	</tr>
	{[foreach name=outer key=key item=item from=$result]} 
	{[assign var="no" value="`$key+$pager->from+1`"]} 
	{[assign var="t1" value="`$t1+$item.num`"]}
	{[assign var="t2" value="`$t2+$item.amount`"]}
	{[assign var="t3" value="`$t2+$item.rmb`"]}
	<tr align="center" onMouseOver="this.style.backgroundColor='#D2E4FC'" onMouseOut="this.style.backgroundColor=''">
		<td><input type="checkbox" class="check" name="c_{[$item.id]}" value="{[$item.id]}"></td>
		<td>{[$no]}</td>
		<td><a href="javascript:void(0)"
			onclick="Common.dialog_view_('{[$root]}{[$viewLink]}&id={[$item.id]}', '查看信息', '650x400')">{[$item.id]}</a></td>

		<td>{[$item.code]}</td>
		<td>{[$item.num]}</td>
		<td><a href="javascript:void(0)" onclick="Quote.popup(event, '{[$p2]}&p={[$p]}', {[$item.id]}, {[$item.status]})">[管理]</a> {[if
		$item.status lte 6]} <a href="javascript:void(0)" onclick="Quote.a2(event, '{[$p2]}', {[$item.id]}, {[$item.status]})"> [报价]</a>
		{[/if]}</td>
		
		<td>{[$item.num_]}</td>
		<td>{[$item.currency_t]}</td>
		<td>{[$item.amount|money]}</td>
		<td>{[$item.rmb|money]}</td>

		{[if $item.status lt 5 and $item.urgent eq '1']}
		<td style="color: white; background: red">{[else]}
		<td>{[/if]} {[$item.urgent_t]}</td>

		<td>{[$item.date]}</td>		

		<td><a href="javascript:void(0)" onclick="emp('{[$item.emp]}')">{[$item.emp_t]}</a></td>
		<td><a href="javascript:void(0)" onclick="emp('{[$item.bj]}')">{[$item.bj_t]}</a></td>
		<td>{[$item.times]}</td>
		<td>{[$item.status_t]}</td>
		<td>{[$item.orderby_x]}</td>	
	</tr>
	{[/foreach]}
	<tr align="center">
		<td><input type="button" name="delete" value="删除" onclick="expunge(this.form)"></td>
		<td colspan="3"></td>
		<td>{[$t1]}</td>
		<td colspan="3"></td>
		<td>{[$t2|money]}</td>
		<td>{[$t3|money]}</td>
		<td colspan="8"></td>
	</tr>
</table>
</form>

{[include file="footer.tpl"]}
